package com.hurried1y.model.enums;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * User：Hurried1y
 * Date：2023/4/3
 */
@AllArgsConstructor
@NoArgsConstructor
public enum BizCodeEnum {
    OK(200, "请求成功"),
    SYSTEM_ERROR(101, "系统错误"),
    UNKNOWN_SOURCE(102, "未知来源"),
    PARAM_ERROR(1000, "参数错误");

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
